
<%@ page import="com.surelution.cppei.weixin.gate.SubscriberGascard" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		
		<link type="text/css" rel="stylesheet" href="${createLink(uri: '/css/weixin-mobile.css')}" />
		<link rel="stylesheet"	href="${resource(dir:'css/jquery.mobile-1.3.2.min.css')}" />
		<script type="text/javascript"	src="${resource(dir:'js/jquery-1.9.1.min.js')}"></script>
		<script src="${resource(dir:'js/jquery.mobile-1.3.2.min.js')}"></script>
		<g:set var="entityName" value="${message(code: 'subscriberGascard.label', default: 'SubscriberGascard')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		
		已绑定卡
		<div id="list-subscriberGascard" class="content scaffold-list">
			<table width="100%">
				<thead>
					<tr>
					
						<g:sortableColumn property="cardNo" title="${message(code: 'subscriberGascard.cardNo.label', default: 'Card No')}" />
					
						<g:sortableColumn property="certificateNo" title="${message(code: 'subscriberGascard.certificateNo.label', default: 'Certificate No')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${cards}" status="i" var="subscriberGascardInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
						<td bgcolor="#cccccc"><a href="${createLink(controller:'subscriberGascard', action:'cardInfo')}/${subscriberGascardInstance.id}">${fieldValue(bean: subscriberGascardInstance, field: "cardNo")}</a></td>
					
						<td align="center">${fieldValue(bean: subscriberGascardInstance, field: "certificateNo")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
		</div>
		
		
		
		<div id="create-subscriberGascard" class="content scaffold-create">
			<div class="message" role="status">${flash.message}</div>
			<g:form action="saveCard" >
				<fieldset class="form">
				
				
				

					<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'cardNo', 'error')} ">
						<label for="cardNo">
							<g:message code="subscriberGascard.cardNo.label" default="Card No" />
							
						</label>
						<g:textField name="cardNo" value="${subscriberGascardInstance?.cardNo}"/>
					</div>
					
					<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'certificateNo', 'error')} ">
						<label for="certificateNo">
							<g:message code="subscriberGascard.certificateNo.label" default="Certificate No" />
							
						</label>
						<g:textField name="certificateNo" value="${subscriberGascardInstance?.certificateNo}"/>
					</div>
					<g:hiddenField name="subscriber.id" value="${subscriber.id }"/>
					
				
				
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="create" class="save" value="绑定" />
				</fieldset>
			</g:form>
		</div>
		
	</body>
</html>
